import { createRouter, createWebHistory } from 'vue-router'
import Desktop from '../views/Desktop.vue'

const routes = [
  {
    path: '/',
    name: 'Desktop',
    component: Desktop
  },
  {
    path: '/snake',
    name: 'Snake',
    component: () => import('../games/snake/Snake.vue')
  },
  {
    path: '/match',
    name: 'Match',
    component: () => import('../games/match/Match.vue')
  },
  {
    path: '/puzzle',
    name: 'Puzzle',
    component: () => import('../games/puzzle/Puzzle.vue')
  },
  {
    path: '/calculator',
    name: 'Calculator',
    component: () => import('../games/calculator/Calculator.vue')
  },
  {
    path: '/paint',
    name: 'Paint',
    component: () => import('../games/paint/Paint.vue')
  }
]

export default createRouter({
  history: createWebHistory(),
  routes
}) 